﻿namespace 面向对象解读
{
    internal class Program
    {
        static void Main(string[] args)
        {
            //小名 张三
            //姓名 年龄 性别
            //1.他们不是一组数据
            //2.太麻烦了

            string name = "小名";
            int age = 10;
            char gender = '男';

            string name1 = "张三";
            int age1 = 12;
            char gender1 = '男';

            //创建对象   一个对象就是一个人
            //必须取调用构造方法
            student zhangsan = new student("张三",10,'男');
            


            student xiaoming = new student();
            xiaoming.Name = "小名";
            xiaoming.Age = 12;
            xiaoming.Gender = '男';


            person p = new student();
            p.Run();

            p=new person();
            p.Run();

            student s= new student();
            s.Run();


            int[] a = { 1, 2, 3, 4, 5, 6 };
            Console.WriteLine(a[2]);
        }
    }
}